import request from '@/utils/request';

export async function getProductBomByPage (params: any) {
    return request('/api/design/getProductBomByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addProductBom (params: any) {
    return request('/api/design/addProductBom', {
    method: 'POST',
    data: params,
  });
}

export async function updateProductBom (params: any) {
    return request('/api/design/updateProductBom', {
    method: 'POST',
    data: params,
  });
}

export async function delProductBom (params: any) {
    return request('/api/design/delProductBom', {
    method: 'POST',
    data: params,
  });
}


export async function exportProductBom(params: any) {
    return request('/api/design/exportProductBom', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getProductBomByPage, addProductBom, updateProductBom, delProductBom, exportProductBom }
